<?
session_start();
ob_start();

include("conf/config.php"); 
include("conf/database.php");
include("conf/tools.php");
include("session.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>
			Timesheet Tracker: <?=$page_title?>
		</title>
		<link href="includes/style.css" rel="stylesheet" type="text/css" />
		<script src="tools.js"  type="text/javascript" ></script>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js" type="text/javascript" ></script>
		<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"  type="text/javascript" ></script>
		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7/themes/smoothness/jquery-ui.css" />
		

	</head>
	<body class="bodybg">
		<table width="900" cellpadding="0" align="center" cellspacing="0" border="0">
			<tr>
				<td valign="top" colspan="2" width="100%" >
					<div class="cleardiv"></div>
					<? if($header!=-1) { ?><div  class="headerbg">
						
					</div><? } ?>
					<div class="cleardiv"></div>
					
					<? if($header!=-1) {?>
					<div style="padding-top:5px;height:24px;margin-top:3px;padding-right:5px;background:#645C4B;border:0px solid #666;">
					
						<div class="fleft" style="width:400px" >
							<ul class="topMenu">
									<li><a <?=getMenuClass(1,$mindex)?> href="index.php">Home</a></li>
									
									
									<?if(!isLoggedIn()==1){?>
									<li><a <?=getMenuClass(1,$mindex)?> href="login.php">Login / Register</a></li>
									<? } ?>
									<?if(isLoggedIn()==1){?>
									<li><a <?=getMenuClass(1,$mindex)?> href="timesheet.php">Timesheet</a></li>
									<li><a <?=getMenuClass(1,$mindex)?> href="reports.php">Reports</a></li>
									<li><a <?=getMenuClass(1,$mindex)?> href="admreports.php">Admin Reports</a></li>
									<? } ?>
																
								</ul>
								

						</div>
						<div class="fnone">
							<div class="fright" style="margin-top:3px;border:0px solid;">
							<span class="profile" style="color:#fff;" >
							Welcome <?=$_SESSION["username"]?>
								<?if(isLoggedIn()==1){?>
								<a <?=getMenuClass(1,$mindex)?> href="logout.php">Log Out</a>
								<? } ?>
								
							</span>
							
							
							
							
							
							</div>
						</div>
						
						
					</div>
					<? } ?>
					<div class="cleardiv"></div>
					<div style="min-height:600px;background:#EEEAE3;padding:10px 10px 10px 10px;border:1px solid #ccc;border-top:0px;">
					
						<table width="100%" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							
							<td valign="top"  style="padding-left:15px;">
							<div style="margin-left:5px;margin-top:15px;margin-right:5px;">
								<div class="page_title"><?=$page_title?></div>
								